import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import './assets/element-variables.scss'
import 'vant/lib/index.css';
// import 'element-ui/lib/theme-chalk/index.css';
import './assets/tw.css'
Vue.use(ElementUI, { size: 'medium' });

import { Tab, Tabs } from 'vant';
import { Swipe, SwipeItem } from 'vant';

Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tab);
Vue.use(Tabs);

import infoBtn from '@/components/info-button.vue'

Vue.component('info-btn', infoBtn)

Vue.prototype.isMobile = function () {
  return navigator.userAgent.match(
    /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
  );
},

  Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
